import { createRouter, createWebHistory } from 'vue-router'
// 修复后的路由配置
import FileUploadView from '../views/FileUploadView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      redirect: '/file-list',
    },
    {
      path: '/file-list',
      name: 'file-list',
      component: () => import('@/views/FileListView.vue'),
    },
    {
      path: '/qa',
      name: 'qa',
      component: () => import('@/views/QaView.vue'),
    },
    {
      path: '/system/prompt',
      name: 'prompt-management',
      component: () => import('@/views/PromptManagementView.vue'),
    },
  ],
})

export default router
